FROM openjdk:8

# copy jar 到指定目录
COPY *.jar /app/app.jar
COPY application.yml /app/config/application.yml

# 设置环境变量指定配置文件位置
ENV SPRING_CONFIG_LOCATION=file:/app/config/application.yml

# 构建时运行命令
ENTRYPOINT ["java","-jar","/app/app.jar"]



